const match = function (str) {
  let reg = /(http:|https:)[//]{2}\w+[.]qq[.]com/;
  return reg.test(str);
};

console.log(match("https://1251.qq.com"));
